package bean;
import java.sql.*;
import java.sql.DriverManager;
public class dbbean {
	public static Connection conn;
	public static Connection getConn(){
		try{  
            Class.forName("com.mysql.jdbc.Driver");  
            conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/web", "root", "941223");  
            return conn;  
        }catch(Exception e){  
            e.printStackTrace();  
            return null;  
        }  
		  }
	}
